package cn.com.flever.app;


import cn.com.flever.config.SysConfig;
import cn.com.flever.netty.NettyServer;
import lombok.extern.slf4j.Slf4j;
import java.net.InetSocketAddress;

@Slf4j
public class Main {


    public static void main(String[] args) {
        int port=SysConfig.getConfiguration().getProperty("netty.port")==null?7070:Integer.valueOf(SysConfig.getConfiguration().getProperty("netty.port"));
        InetSocketAddress address = new InetSocketAddress("0.0.0.0",port);
        NettyServer server=new NettyServer();
        server.start(address);
    }


}
